#include "Sock.hpp"
#include "Util.hpp"
#include "Log.hpp"

static const uint16_t defaultport = 9090;

class HttpServer
{
public:
    HttpServer(const uint16_t port = defaultport)
        :port_(port)
    {
    }

    void InitServer()
    {
        //创建套接字
        listernsock_.Socket();
        //绑定
        listernsock_.Bind(port_);
        //监听
        listernsock_.Listen();
    }

    void Satrt()
    {

    }

    ~HttpServer()
    {

    }

private:
    int port_;
    Sock listernsock_;

};